JavaScript

A5.ListBoxsetLock Method

Syntax

A5.ListBox.setLock(lock[,html])

Arguments

lockboolean

Whether or not to lock the list.

htmlstring

The HTML message to display inside the overlay element used to lock the list.

Description

Lock the list to prevent user interaction.

Discussion

The list can be locked to prevent user interaction. An element will overlay the list to which can contain a message to display while the list is locked.

Example

// To get a pointer to the A5.ListBox class see {dialog.object}.getControl
// assume lObj is a pointer to an instance of the A5.ListBox class
lObj.setLock(true,'Please wait...'); // lock the list
setTimeout(function(){
	lObj.setLock(false); // unlock the list on second later
},1000)

See Also